//
//  UIView+Line.m
//  Shuaiche
//
//  Created by dangshuai on 2018/12/18.
//  Copyright © 2018 zzs. All rights reserved.
//

#import "UIView+Line.h"

@implementation UIView (Line)
- (void)addLineWithFrame:(CGRect)frame {
    CALayer *layer = [CALayer layer];
    layer.frame = frame;
    layer.backgroundColor = SCColor(0xE4E4E4).CGColor;
    [self.layer addSublayer:layer];
}

- (void)addLineWithFrame:(CGRect)frame withColor:(UIColor *)color {
    CALayer *layer = [CALayer layer];
    layer.frame = frame;
    layer.backgroundColor = color.CGColor;
    [self.layer addSublayer:layer];
}
@end
